package com.yuyou.fn.educational.mapper;

import com.yuyou.fn.educational.entity.DegreeLockRecord;
import com.github.wens.mybatisplus.mapper.AutoMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 *
 * DegreeLockRecord 表数据库控制层接口
 *
 */
public interface DegreeLockRecordMapper extends AutoMapper<DegreeLockRecord,Long> {


    @Select("select count(*) from degree_lock_record where  lock_key = #{lockKey} for update")
    long getLockX(@Param("lockKey") String lockKey);

}